package com.one.efaimaly.main.model.bean;

import com.one.common.utils.StringUtils;
import com.one.common.utils.map.LatLng;

/**
 * author ：zhulunjun
 * email  ：zhulunjun@qq.com
 * date   ：2018/8/7 下午11:08
 * description ：
 **/
public class MaintailOrderAddressBean {


    /**
     * address_latitude :
     * address_mobile : 18888888888
     * create_time : 2018-08-03 16:45:53.0
     * address_country : 苏州新区
     * order_address_id : 94
     * address_zip_code : 888888
     * address_id : 1450
     * address_detailed : 苏州乐园
     * address_name : shen
     * address_city : 苏州市
     * is_delete : 0
     * update_time : 2018-08-03 16:45:53.0
     * address_province : 江苏省
     * address_road : 588号
     * address_longitude :
     * order_id : 3
     */

    public String getAddress() {
        return getAddress_province() + getAddress_city() +
                getAddress_country() +
                getAddress_detailed() + getAddress_road();
    }

    private int order_address_id;//

    private String order_id;//订单id

    private String address_id;//地址id

    private String address_mobile;//收货人手机号

    private String address_name;//收货人姓名

    private String address_province;//收货人省

    private String address_city;//收货市

    private String address_country;//收货区

    private String address_detailed;//收货详情地址

    private String address_road;//收货路

    private String address_zip_code;//收货邮编

    private String address_longitude;//收货经度

    private String address_latitude;//收货纬度

    private String is_delete;//

    private String create_time;//

    private String update_time;//

    public LatLng getLatLng(){
        if(StringUtils.isNotBlank(getAddress_longitude()) && StringUtils.isNotBlank(getAddress_latitude())){
            double lon = StringUtils.getDoubleToString(getAddress_longitude());
            double lat = StringUtils.getDoubleToString(getAddress_latitude());
            return new LatLng(lat, lon);
        }
        return null;
    }
    public String getAddress_latitude() {
        return address_latitude;
    }

    public void setAddress_latitude(String address_latitude) {
        this.address_latitude = address_latitude;
    }

    public String getAddress_mobile() {
        return address_mobile;
    }

    public void setAddress_mobile(String address_mobile) {
        this.address_mobile = address_mobile;
    }

    public String getCreate_time() {
        return create_time;
    }

    public void setCreate_time(String create_time) {
        this.create_time = create_time;
    }

    public String getAddress_country() {
        return address_country;
    }

    public void setAddress_country(String address_country) {
        this.address_country = address_country;
    }

    public int getOrder_address_id() {
        return order_address_id;
    }

    public void setOrder_address_id(int order_address_id) {
        this.order_address_id = order_address_id;
    }

    public String getAddress_zip_code() {
        return address_zip_code;
    }

    public void setAddress_zip_code(String address_zip_code) {
        this.address_zip_code = address_zip_code;
    }

    public String getAddress_id() {
        return address_id;
    }

    public void setAddress_id(String address_id) {
        this.address_id = address_id;
    }

    public String getAddress_detailed() {
        return address_detailed;
    }

    public void setAddress_detailed(String address_detailed) {
        this.address_detailed = address_detailed;
    }

    public String getAddress_name() {
        return address_name;
    }

    public void setAddress_name(String address_name) {
        this.address_name = address_name;
    }

    public String getAddress_city() {
        return address_city;
    }

    public void setAddress_city(String address_city) {
        this.address_city = address_city;
    }

    public String getIs_delete() {
        return is_delete;
    }

    public void setIs_delete(String is_delete) {
        this.is_delete = is_delete;
    }

    public String getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(String update_time) {
        this.update_time = update_time;
    }

    public String getAddress_province() {
        return address_province;
    }

    public void setAddress_province(String address_province) {
        this.address_province = address_province;
    }

    public String getAddress_road() {
        return address_road;
    }

    public void setAddress_road(String address_road) {
        this.address_road = address_road;
    }

    public String getAddress_longitude() {
        return address_longitude;
    }

    public void setAddress_longitude(String address_longitude) {
        this.address_longitude = address_longitude;
    }

    public String getOrder_id() {
        return order_id;
    }

    public void setOrder_id(String order_id) {
        this.order_id = order_id;
    }
}
